package com.aepryus.loom;

import java.io.*;
import java.util.*;
import javax.servlet.http.*;
import com.oreilly.servlet.*;

@SuppressWarnings("deprecation")
public class MultiRequest extends HttpServletRequestWrapper {
	private MultipartRequest multi;
	private static final int size = 1024*1024*20;

	public MultiRequest (HttpServletRequest request,String directory) throws IOException {
		super(request);
		multi = new MultipartRequest(request,directory,size);
	}

	public MultipartRequest getMulti () {return multi;}

// HttpServletRequestWrapper ===========================================================================================
	public String getParameter (String s) {return multi.getParameter(s);}
	public Enumeration getParameterNames () {return multi.getParameterNames();}
	public String[] getParameterValues (String s) {return multi.getParameterValues(s);}
}

